package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 销售计划对象 sale_plan
 * 
 * @author he
 * @date 2025-08-14
 */
public class SalePlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /**  租户ID */
    private Long tenantId;

    /**  创建id */
    private Long createUserId;

    /**  创建机构id */
    private Long createOrgId;

    /**  修改用户ID */
    private Long updateUserId;

    /**  修改用户名 */
    private String updateUserName;

    /**  是否删除 */
    private Long isDelete;

    /**  机构ID */
    private Long orgId;

    /** 备用字段1 */
    private String sqare01;

    /**  备用字段2 */
    private String sqare02;

    /**  备用字段3 */
    private String sqare03;

    /**  备用字段4 */
    private String sqare04;

    /**  备用字段5 */
    private String sqare05;

    /**  备用字段6 */
    private String sqare06;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /**  编码 */
    @Excel(name = " 编码")
    private String number;

    /** 提货码 */
    @Excel(name = "提货码")
    private String pickCode;

    /**  合同ID */
    private Long contractId;

    /**  发货方 */
    @Excel(name = " 发货方")
    private String sendoutCompany;

    /**  收货方 */
    @Excel(name = " 收货方")
    private String receiveCompany;

    /**  开始时间 */
    @Excel(name = " 开始时间")
    private String signdate;

    /**  结束时间 */
    @Excel(name = " 结束时间")
    private String enddate;

    /**  合同编码 */
    private String contractNumber;

    /**  合同名称 */
    private String contractName;

    /**  发货方id */
    private Long sendoutCompanyId;

    /**  收货方id */
    private Long receiveCompanyId;

    /**  类型 */
    private Long type;

    /**  处理人 */
    private String handledby;

    /**  计划状态 */
    @Excel(name = " 计划状态")
    private Long planState;

    /**  状态 */
    @Excel(name = " 状态")
    private Long state;

    /** 处理机构 */
    private String handledbyOrg;

    /**  审核id */
    private Long reviewerId;

    /**  审核人 */
    private String reviewer;

    /**  审核机构 */
    private String reviewbyOrg;

    /**  审核时间 */
    private String reviewTime;

    /**  审核状态 */
    private Long checkState;

    /** 创建机构名 */
    private String createOrgName;

    /** 处理机构ID */
    private Long handledbyOrgId;

    /**  货物名称 */
    @Excel(name = " 货物名称")
    private String itemName;

    /**  货物价格 */
    @Excel(name = " 货物价格")
    private BigDecimal itemPrice;

    /**  数量 */
    @Excel(name = " 数量")
    private BigDecimal total;

    /**  货物规格 */
    @Excel(name = " 货物规格")
    private String itemModel;

    /**  完成量 */
    @Excel(name = " 完成量")
    private BigDecimal completed;

    /**  剩余量 */
    @Excel(name = " 剩余量")
    private BigDecimal remain;

    /**  完成率 */
    @Excel(name = " 完成率")
    private BigDecimal completionRate;

    /**  运单数 */
    @Excel(name = " 运单数")
    private Integer waybillQty;

    /**  计划车辆数 */
    @Excel(name = " 计划车辆数")
    private Integer plancarQty;

    /**  计划完成车数 */
    @Excel(name = " 计划完成车数")
    private Integer planCompletedcarQty;

    /**  计划剩余车数 */
    @Excel(name = " 计划剩余车数")
    private Integer planRemaincarQty;

    /**  创建用户名 */
    @Excel(name = " 创建用户名")
    private String createUserName;

    /**  是否扣款 */
    private Long deductionFlag;

    /**  仓库ID */
    private Long stockId;

    /**  合同id */
    private String contactId;

    /**  仓库名称 */
    private String stockName;

    /**  货物ID */
    private Long itemId;

    /** 货物编码 */
    private String itemNumber;

    /**  包数 */
    private String packageNum;

    /**  立方数 */
    private String cube;

    /** 补量数 */
    private String incrementTotal;

    /** 仓库id */
    private String stockIds;

    /**  冻结量 */
    private String freezeQuantity;

    /**  货物价格id */
    private Long itemPriceId;

    /**  货物类型 */
    private Long itemType;

    /**  价格类型 */
    private String priceType;

    /**  结算价格 */
    private String settlementPrice;

    /**  结算金额 */
    private String settlementAmount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }

    public void setCreateUserId(Long createUserId) 
    {
        this.createUserId = createUserId;
    }

    public Long getCreateUserId() 
    {
        return createUserId;
    }

    public void setCreateOrgId(Long createOrgId) 
    {
        this.createOrgId = createOrgId;
    }

    public Long getCreateOrgId() 
    {
        return createOrgId;
    }

    public void setUpdateUserId(Long updateUserId) 
    {
        this.updateUserId = updateUserId;
    }

    public Long getUpdateUserId() 
    {
        return updateUserId;
    }

    public void setUpdateUserName(String updateUserName) 
    {
        this.updateUserName = updateUserName;
    }

    public String getUpdateUserName() 
    {
        return updateUserName;
    }

    public void setIsDelete(Long isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete() 
    {
        return isDelete;
    }

    public void setOrgId(Long orgId) 
    {
        this.orgId = orgId;
    }

    public Long getOrgId() 
    {
        return orgId;
    }

    public void setSqare01(String sqare01) 
    {
        this.sqare01 = sqare01;
    }

    public String getSqare01() 
    {
        return sqare01;
    }

    public void setSqare02(String sqare02) 
    {
        this.sqare02 = sqare02;
    }

    public String getSqare02() 
    {
        return sqare02;
    }

    public void setSqare03(String sqare03) 
    {
        this.sqare03 = sqare03;
    }

    public String getSqare03() 
    {
        return sqare03;
    }

    public void setSqare04(String sqare04) 
    {
        this.sqare04 = sqare04;
    }

    public String getSqare04() 
    {
        return sqare04;
    }

    public void setSqare05(String sqare05) 
    {
        this.sqare05 = sqare05;
    }

    public String getSqare05() 
    {
        return sqare05;
    }

    public void setSqare06(String sqare06) 
    {
        this.sqare06 = sqare06;
    }

    public String getSqare06() 
    {
        return sqare06;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }

    public void setPickCode(String pickCode) 
    {
        this.pickCode = pickCode;
    }

    public String getPickCode() 
    {
        return pickCode;
    }

    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }

    public void setSendoutCompany(String sendoutCompany) 
    {
        this.sendoutCompany = sendoutCompany;
    }

    public String getSendoutCompany() 
    {
        return sendoutCompany;
    }

    public void setReceiveCompany(String receiveCompany) 
    {
        this.receiveCompany = receiveCompany;
    }

    public String getReceiveCompany() 
    {
        return receiveCompany;
    }

    public void setSigndate(String signdate) 
    {
        this.signdate = signdate;
    }

    public String getSigndate() 
    {
        return signdate;
    }

    public void setEnddate(String enddate) 
    {
        this.enddate = enddate;
    }

    public String getEnddate() 
    {
        return enddate;
    }

    public void setContractNumber(String contractNumber) 
    {
        this.contractNumber = contractNumber;
    }

    public String getContractNumber() 
    {
        return contractNumber;
    }

    public void setContractName(String contractName) 
    {
        this.contractName = contractName;
    }

    public String getContractName() 
    {
        return contractName;
    }

    public void setSendoutCompanyId(Long sendoutCompanyId) 
    {
        this.sendoutCompanyId = sendoutCompanyId;
    }

    public Long getSendoutCompanyId() 
    {
        return sendoutCompanyId;
    }

    public void setReceiveCompanyId(Long receiveCompanyId) 
    {
        this.receiveCompanyId = receiveCompanyId;
    }

    public Long getReceiveCompanyId() 
    {
        return receiveCompanyId;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public void setHandledby(String handledby) 
    {
        this.handledby = handledby;
    }

    public String getHandledby() 
    {
        return handledby;
    }

    public void setPlanState(Long planState) 
    {
        this.planState = planState;
    }

    public Long getPlanState() 
    {
        return planState;
    }

    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    public void setHandledbyOrg(String handledbyOrg) 
    {
        this.handledbyOrg = handledbyOrg;
    }

    public String getHandledbyOrg() 
    {
        return handledbyOrg;
    }

    public void setReviewerId(Long reviewerId) 
    {
        this.reviewerId = reviewerId;
    }

    public Long getReviewerId() 
    {
        return reviewerId;
    }

    public void setReviewer(String reviewer) 
    {
        this.reviewer = reviewer;
    }

    public String getReviewer() 
    {
        return reviewer;
    }

    public void setReviewbyOrg(String reviewbyOrg) 
    {
        this.reviewbyOrg = reviewbyOrg;
    }

    public String getReviewbyOrg() 
    {
        return reviewbyOrg;
    }

    public void setReviewTime(String reviewTime) 
    {
        this.reviewTime = reviewTime;
    }

    public String getReviewTime() 
    {
        return reviewTime;
    }

    public void setCheckState(Long checkState) 
    {
        this.checkState = checkState;
    }

    public Long getCheckState() 
    {
        return checkState;
    }

    public void setCreateOrgName(String createOrgName) 
    {
        this.createOrgName = createOrgName;
    }

    public String getCreateOrgName() 
    {
        return createOrgName;
    }

    public void setHandledbyOrgId(Long handledbyOrgId) 
    {
        this.handledbyOrgId = handledbyOrgId;
    }

    public Long getHandledbyOrgId() 
    {
        return handledbyOrgId;
    }

    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }

    public void setItemPrice(BigDecimal itemPrice)
    {
        this.itemPrice = itemPrice;
    }

    public BigDecimal getItemPrice()
    {
        return itemPrice;
    }

    public void setTotal(BigDecimal total)
    {
        this.total = total;
    }

    public BigDecimal getTotal()
    {
        return total;
    }

    public void setItemModel(String itemModel) 
    {
        this.itemModel = itemModel;
    }

    public String getItemModel() 
    {
        return itemModel;
    }

    public void setCompleted(BigDecimal completed)
    {
        this.completed = completed;
    }

    public BigDecimal getCompleted()
    {
        return completed;
    }

    public void setRemain(BigDecimal remain)
    {
        this.remain = remain;
    }

    public BigDecimal getRemain()
    {
        return remain;
    }

    public void setCompletionRate(BigDecimal completionRate)
    {
        this.completionRate = completionRate;
    }

    public BigDecimal getCompletionRate()
    {
        return completionRate;
    }

    public void setWaybillQty(Integer waybillQty)
    {
        this.waybillQty = waybillQty;
    }

    public Integer getWaybillQty()
    {
        return waybillQty;
    }

    public void setPlancarQty(Integer plancarQty)
    {
        this.plancarQty = plancarQty;
    }

    public Integer getPlancarQty()
    {
        return plancarQty;
    }

    public void setPlanCompletedcarQty(Integer planCompletedcarQty)
    {
        this.planCompletedcarQty = planCompletedcarQty;
    }

    public Integer getPlanCompletedcarQty()
    {
        return planCompletedcarQty;
    }

    public void setPlanRemaincarQty(Integer planRemaincarQty)
    {
        this.planRemaincarQty = planRemaincarQty;
    }

    public Integer getPlanRemaincarQty()
    {
        return planRemaincarQty;
    }

    public void setCreateUserName(String createUserName) 
    {
        this.createUserName = createUserName;
    }

    public String getCreateUserName() 
    {
        return createUserName;
    }

    public void setDeductionFlag(Long deductionFlag) 
    {
        this.deductionFlag = deductionFlag;
    }

    public Long getDeductionFlag() 
    {
        return deductionFlag;
    }

    public void setStockId(Long stockId) 
    {
        this.stockId = stockId;
    }

    public Long getStockId() 
    {
        return stockId;
    }

    public void setContactId(String contactId) 
    {
        this.contactId = contactId;
    }

    public String getContactId() 
    {
        return contactId;
    }

    public void setStockName(String stockName) 
    {
        this.stockName = stockName;
    }

    public String getStockName() 
    {
        return stockName;
    }

    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }

    public void setItemNumber(String itemNumber) 
    {
        this.itemNumber = itemNumber;
    }

    public String getItemNumber() 
    {
        return itemNumber;
    }

    public void setPackageNum(String packageNum) 
    {
        this.packageNum = packageNum;
    }

    public String getPackageNum() 
    {
        return packageNum;
    }

    public void setCube(String cube) 
    {
        this.cube = cube;
    }

    public String getCube() 
    {
        return cube;
    }

    public void setIncrementTotal(String incrementTotal) 
    {
        this.incrementTotal = incrementTotal;
    }

    public String getIncrementTotal() 
    {
        return incrementTotal;
    }

    public void setStockIds(String stockIds) 
    {
        this.stockIds = stockIds;
    }

    public String getStockIds() 
    {
        return stockIds;
    }

    public void setFreezeQuantity(String freezeQuantity) 
    {
        this.freezeQuantity = freezeQuantity;
    }

    public String getFreezeQuantity() 
    {
        return freezeQuantity;
    }

    public void setItemPriceId(Long itemPriceId) 
    {
        this.itemPriceId = itemPriceId;
    }

    public Long getItemPriceId() 
    {
        return itemPriceId;
    }

    public void setItemType(Long itemType) 
    {
        this.itemType = itemType;
    }

    public Long getItemType() 
    {
        return itemType;
    }

    public void setPriceType(String priceType) 
    {
        this.priceType = priceType;
    }

    public String getPriceType() 
    {
        return priceType;
    }

    public void setSettlementPrice(String settlementPrice) 
    {
        this.settlementPrice = settlementPrice;
    }

    public String getSettlementPrice() 
    {
        return settlementPrice;
    }

    public void setSettlementAmount(String settlementAmount) 
    {
        this.settlementAmount = settlementAmount;
    }

    public String getSettlementAmount() 
    {
        return settlementAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("updateTime", getUpdateTime())
            .append("createUserId", getCreateUserId())
            .append("createOrgId", getCreateOrgId())
            .append("updateUserId", getUpdateUserId())
            .append("updateUserName", getUpdateUserName())
            .append("isDelete", getIsDelete())
            .append("orgId", getOrgId())
            .append("sqare01", getSqare01())
            .append("sqare02", getSqare02())
            .append("sqare03", getSqare03())
            .append("sqare04", getSqare04())
            .append("sqare05", getSqare05())
            .append("sqare06", getSqare06())
            .append("name", getName())
            .append("number", getNumber())
            .append("pickCode", getPickCode())
            .append("contractId", getContractId())
            .append("sendoutCompany", getSendoutCompany())
            .append("receiveCompany", getReceiveCompany())
            .append("signdate", getSigndate())
            .append("enddate", getEnddate())
            .append("contractNumber", getContractNumber())
            .append("contractName", getContractName())
            .append("sendoutCompanyId", getSendoutCompanyId())
            .append("receiveCompanyId", getReceiveCompanyId())
            .append("type", getType())
            .append("handledby", getHandledby())
            .append("planState", getPlanState())
            .append("state", getState())
            .append("handledbyOrg", getHandledbyOrg())
            .append("reviewerId", getReviewerId())
            .append("reviewer", getReviewer())
            .append("reviewbyOrg", getReviewbyOrg())
            .append("reviewTime", getReviewTime())
            .append("checkState", getCheckState())
            .append("createOrgName", getCreateOrgName())
            .append("handledbyOrgId", getHandledbyOrgId())
            .append("itemName", getItemName())
            .append("itemPrice", getItemPrice())
            .append("total", getTotal())
            .append("itemModel", getItemModel())
            .append("completed", getCompleted())
            .append("remain", getRemain())
            .append("completionRate", getCompletionRate())
            .append("waybillQty", getWaybillQty())
            .append("plancarQty", getPlancarQty())
            .append("planCompletedcarQty", getPlanCompletedcarQty())
            .append("planRemaincarQty", getPlanRemaincarQty())
            .append("createUserName", getCreateUserName())
            .append("createTime", getCreateTime())
            .append("deductionFlag", getDeductionFlag())
            .append("stockId", getStockId())
            .append("contactId", getContactId())
            .append("stockName", getStockName())
            .append("itemId", getItemId())
            .append("itemNumber", getItemNumber())
            .append("packageNum", getPackageNum())
            .append("cube", getCube())
            .append("incrementTotal", getIncrementTotal())
            .append("stockIds", getStockIds())
            .append("freezeQuantity", getFreezeQuantity())
            .append("itemPriceId", getItemPriceId())
            .append("itemType", getItemType())
            .append("priceType", getPriceType())
            .append("settlementPrice", getSettlementPrice())
            .append("settlementAmount", getSettlementAmount())
            .toString();
    }
}
